package cn.itsource.org.mapper;

import cn.itsource.org.domain.Department;
import cn.itsource.org.query.DepartmentQuery;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;


/**
 * 部门持久层
 */
public interface DepartmentMapper extends Mapper<Department> {

    //批量删除
    void bathDelete(@Param("ids") Long[] ids);

    //查询列表
    List<Department> findPage(DepartmentQuery query);

    //查询上级部门
    List<Department> findParent();
}
